package com.supermap.data.modal;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * 调查对象信息
 * TUser entity. @sun'f
 */
@Entity
@Table(name = "T_OBJECT")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})
public class TObject {

    /**
     * 主键
     */
    private String id;

    /**
     * 其他指标后续再加
     */

    public TObject(String id) {
        this.id = id;
    }

    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
